<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="com.jiadakeji.ppm.modules.sys.utils.*" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
    <title>楼栋月报表</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        $(document).ready(function() {

        });
        function page(n,s){
            $("#pageNo").val(n);
            $("#pageSize").val(s);
            $("#searchForm").submit();
            return false;
        }
    </script>
</head>
<body>
<ul class="nav nav-tabs">
    <li ><a href="${ctx}/business/report/getReportCommunity">小区月报表</a></li>
    <li class="active"><a href="${ctx}/business/report/getReportBuilding">楼栋月报表</a></li>
</ul>
<form:form id="searchForm" modelAttribute="reportBuildingDTO" action="${ctx}/business/report/getReportBuilding" method="post" class="breadcrumb form-search">
    <li><label>缴费月份：</label>
        <form:hidden path="communityId"/>
        <form:select path="feeMonthId" class="input-medium">
            <form:option value="" label=""/>
            <form:options items="${fns:getFeeMonthList()}" itemLabel="monthString" itemValue="id" htmlEscape="false"/>
        </form:select>
    </li>
    <li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
    <li class="clearfix"></li>
</form:form>
<sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead>
    <tr>
        <th>楼栋</th>
        <th>当前总房间数</th>
        <th>当前入住房间数</th>
        <th>当前入住率</th>
        <th>本月物业管理费</th>
        <th>本月均摊电费</th>
        <th>本月均摊水费</th>
        <th>本月二次加压水电费</th>
        <th>本月停车费</th>
        <th>本月电梯费</th>
        <th>本月总应收费用</th>
        <th>本月已回收费用</th>
        <th>本月回收率</th>
        <th>本年度总应收费用</th>
        <th>本年度已回收费用</th>
        <th>本年度回收率</th>
        <th>本年物业管理费</th>
        <th>本年均摊电费</th>
        <th>本年均摊水费</th>
        <th>本年二次加压水电费</th>
        <th>本年停车费</th>
        <th>本年电梯费</th>
       <%-- <th>历史总应收费用</th>
        <th>历史已回收费用</th>
        <th>历史总回收率</th>--%>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${reportList}" var="reportBuildingDTO">
        <tr>
            <td>
                    ${reportBuildingDTO.buildingName}
            </td>
            <td>
                    ${reportBuildingDTO.totalRoom}
            </td>
            <td>
                    ${reportBuildingDTO.usedRoom}

            </td>
            <td>
                    ${reportBuildingDTO.usedRate}
            </td>
            <td>
                    ${reportBuildingDTO.manageFee}
            </td>
            <td>
                    ${reportBuildingDTO.avgElecFee}
            </td>
            <td>
                    ${reportBuildingDTO.avgWaterFee}
            </td>
            <td>
                    ${reportBuildingDTO.secondPushElecFee}
            </td>
            <td>
                    ${reportBuildingDTO.carMonthFee}
            </td>
            <td>
                    ${reportBuildingDTO.elevatorFee}
            </td>
            <td>
                    ${reportBuildingDTO.totalFee}
            </td>
            <td>
                    ${reportBuildingDTO.receivedFee}
            </td>
            <td>
                    ${reportBuildingDTO.receivedRate}
            </td>
            <td>
                    ${reportBuildingDTO.yearManageFee}
            </td>
            <td>
                    ${reportBuildingDTO.yearAvgElecFee}
            </td>
            <td>
                    ${reportBuildingDTO.yearAvgWaterFee}
            </td>
            <td>
                    ${reportBuildingDTO.yearSecondPushElecFee}
            </td>
            <td>
                    ${reportBuildingDTO.yearCarMonthFee}
            </td>
            <td>
                    ${reportBuildingDTO.yearElevatorFee}
            </td>
            <td>
                    ${reportBuildingDTO.yearTotalFee}
            </td>
            <td>
                    ${reportBuildingDTO.yearReceivedFee}
            </td>
            <td>
                    ${reportBuildingDTO.yearReceivedRate}
            </td>
           <%-- <td>
                    ${reportBuildingDTO.historyTotalFee}
            </td>
            <td>
                    ${reportBuildingDTO.historyReceivedFee}
            </td>
            <td>
                    ${reportBuildingDTO.historyReceivedRate}
            </td>--%>
        </tr>
    </c:forEach>
    </tbody>
</table>
<div class="pagination">${page}</div>
</body>
</html>
